package com.nidu.demo.notify.dto;

import com.nidu.demo.base.BasePageQry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 站内信消息分页查询
 *
 * @author auto
 */
@Data
@Schema(description = "站内信消息分页查询")
@EqualsAndHashCode(callSuper = true)
public class NotifyMessagePageQry extends BasePageQry {

    @Schema(description = "用户id", example = "1")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    private Integer userType;

    @Schema(description = "模版编号", example = "1")
    private Long templateId;

    @Schema(description = "模板编码", example = "SYSTEM_NOTICE")
    private String templateCode;

    @Schema(description = "模版类型", example = "1")
    private Integer templateType;

    @Schema(description = "是否已读", example = "false")
    private Boolean readStatus;

    @Schema(description = "阅读时间范围", example = "[\"2025-01-01 00:00:00\", \"2025-01-31 23:59:59\"]")
    private LocalDateTime[] readTime;

}
